﻿// ***********************************************************************
// Assembly         : MVC4Portal
// Author           : LJO+01 (Laurent Jordi)
// Created          : 06-05-2013
// Last Modified By : LJO+01 (Laurent Jordi)
// Last Modified On : 06-05-2013
// ***********************************************************************
// <copyright file="CSSGController.cs" company="Copyright © Innovacall 2011">
//     Copyright (c) Copyright © Innovacall 2011. All rights reserved.
// </copyright>
// <summary></summary>
// ***********************************************************************
using System.Web.Mvc;
using InnovaApp.Layers.CommonLayer.Models;
using InnovaApp.Portals.MVC4Portal.Models.ClientFilesGenerationModels;
using INNOVACALL.Framework.Common.Extensions;

namespace InnovaApp.Portals.MVC4Portal.Controllers.ClientFilesGenerationControllers
{
    /// <summary>
    /// Class CSSGController
    /// </summary>
    public class CSSGController : _ClientFilesGenerationControllers_Base
    {
        /// <summary>
        /// Sites this instance.
        /// </summary>
        /// <returns>ActionResult.</returns>
		public ActionResult Site()
		{
			CssGModel toReturn = new CssGModel();
			//Static cssFile
			string staticCssFileName = Server.MapPath("/Content/_Site.css");
			string staticCssFileContent = staticCssFileName.ReadContentFile();
			staticCssFileContent = "/*Innovacall Static CSS elements*/\n" + staticCssFileContent;
			staticCssFileContent = staticCssFileContent + "\n/*Innovacall Dynamic CSS elements*/\n";
			toReturn.StaticCss = staticCssFileContent;
			//toReturn.CssBloc Add CssBlocs here for example to set with and height
			Response.ContentType = "text/css";
			return View(toReturn);
		}
	}
}
